﻿using System;
using System.Collections.Generic;
using Model.AuthModel;
using Model.Base;
namespace IDAL.AuthModel
{
    /// <summary>
    /// 通用组件，权限模型，接口层，功能
    /// </summary>
    public interface IFunc
    {
        /// <summary>
        /// 新增功能
        /// </summary>
        /// <param name="info">功能对象</param>
        /// <returns></returns>
        bool InsertFunc(FuncInfo info);

        /// <summary>
        /// 修改功能
        /// </summary>
        /// <param name="info"></param>
        /// <returns></returns>
        bool UpdateFunc(FuncInfo info);

        /// <summary>
        /// 删除功能
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DeleteFunc(int id);

        /// <summary>
        /// 根据编号获取功能
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        FuncInfo GetFuncByID(int id);

        /// <summary>
        /// 功能列表
        /// </summary>
        /// <param name="condition"></param>
        /// <returns></returns>
        IList<FuncInfo> ListFunc(BaseCondition condition);
    }
}
